import static org.junit.Assert.*;

import org.junit.Test;

/**
 * @author Carolyn
 * 
 */
public class DraftTest {

	@Test
	public void testDraft() {
		Draft tempDraft = new Draft("analyst name", "draft name");
		assertNotNull(tempDraft);
	}
	
	@Test
	public void testGetAnalystName() {
		Draft tempDraft = new Draft("analyst name", "draft name");
		assertEquals("analyst name", tempDraft.getAnalystName());
	}
	
	@Test
	public void testSetAnalystName() {
		Draft tempDraft = new Draft("analyst name", "draft name");
		tempDraft.setAnalystName("new analyst");
		assertEquals("new analyst", tempDraft.myAnalystName);
	}
	
	@Test
	public void testGetFileName() {
		Draft tempDraft = new Draft("analyst name", "draft name");
		assertEquals("draft name", tempDraft.getFileName());
	}
	
	@Test
	public void testSetFileName() {
		Draft tempDraft = new Draft("analyst name", "draft name");
		tempDraft.setFileName("new draft name");
		assertEquals("new draft name", tempDraft.myFileName);
	}
	
	@Test
	public void testToString() {
		Draft tempDraft = new Draft("analyst name", "draft name");
		assertEquals(" analyst name draft name", tempDraft.toString());
	}

}
